package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户优惠券对象 client_coupons
 * 
 * @author ruoyi
 * @date 2024-09-24
 */
public class ClientCoupons extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户优惠券ID */
    private Long clientCouponId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long clientId;

    /** 优惠券ID */
    @Excel(name = "优惠券ID")
    private Long couponId;

    /** 优惠券状态(未使用 已使用 已过期) */
    @Excel(name = "优惠券状态(未使用 已使用 已过期)")
    private String status;

    /** 用户领取时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "用户领取时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date acquiredAt;

    /** 使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "使用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date usedAt;

    public void setClientCouponId(Long clientCouponId) 
    {
        this.clientCouponId = clientCouponId;
    }

    public Long getClientCouponId() 
    {
        return clientCouponId;
    }
    public void setClientId(Long clientId) 
    {
        this.clientId = clientId;
    }

    public Long getClientId() 
    {
        return clientId;
    }
    public void setCouponId(Long couponId) 
    {
        this.couponId = couponId;
    }

    public Long getCouponId() 
    {
        return couponId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setAcquiredAt(Date acquiredAt) 
    {
        this.acquiredAt = acquiredAt;
    }

    public Date getAcquiredAt() 
    {
        return acquiredAt;
    }
    public void setUsedAt(Date usedAt) 
    {
        this.usedAt = usedAt;
    }

    public Date getUsedAt() 
    {
        return usedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("clientCouponId", getClientCouponId())
            .append("clientId", getClientId())
            .append("couponId", getCouponId())
            .append("status", getStatus())
            .append("acquiredAt", getAcquiredAt())
            .append("usedAt", getUsedAt())
            .toString();
    }
}
